import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("dictionary_category", { schema: "cabinet" })
export class DictionaryCategory {
  @PrimaryGeneratedColumn({ type: "smallint", name: "id", unsigned: true })
  id: number;

  @Column("varchar", { name: "name", length: 10 })
  name: string;

  @Column("varchar", { name: "code", length: 20 })
  code: string;
}
